﻿# MyLibraryProject/CMakeLists.txt
cmake_minimum_required(VERSION 3.8)
project(MyLibrary)

# 设置为动态库
add_library(MyLibrary SHARED
    sources/MyLibrary.cpp
)

target_compile_definitions(MyLibrary PRIVATE MYLIBRARY_EXPORTS)

# 指定头文件目录
target_include_directories(MyLibrary PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}/sources
)
